package routers

import (
	"gvb_server/api"
	"gvb_server/middleware"
)

func (routerGroup RouterGroup) MessagesRouter() {
	messageApi := api.ApiGroupApp.MessageApi
	routerGroup.POST("/messages", middleware.JwtAuth(), messageApi.MessageCreateView)
	routerGroup.GET("/messages_all", middleware.JwtAdmin(), messageApi.MessageListAllView)
	routerGroup.GET("/messages", middleware.JwtAuth(), messageApi.MessageListView)
	routerGroup.GET("/message_records", middleware.JwtAuth(), messageApi.MessageRecordView)
}
